﻿#region Using directives
using System.Text.Json.Serialization;
#endregion

namespace Blazorise.Charts;

public class BarChartOptions : ChartOptions
{
    /// <summary>
    /// Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other.
    /// </summary>
    [JsonIgnore( Condition = JsonIgnoreCondition.WhenWritingNull )]
    public float? BarPercentage { get; set; }

    /// <summary>
    /// Percent (0-1) of the available width each category should be within the sample width. 
    /// </summary>
    [JsonIgnore( Condition = JsonIgnoreCondition.WhenWritingNull )]
    public float? CategoryPercentage { get; set; }
}